package com.xj.demoExcel.easyexcel;

import com.alibaba.excel.annotation.ExcelProperty;

public class ComplexHeadLocation {

    /**
     * value可以是字符串，也可以是数据，所有字段占据的总高度是一致的，数组中的个数对应几行
     */
    @ExcelProperty(index = 0,value = {"省","中国的省","世界"})
    private String province;

    @ExcelProperty(index = 1,value = {"市","中国的市"})
    private String city;

    @ExcelProperty(index = 2,value = "县区")
    private String county;

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    @Override
    public String toString() {
        return "ComplexHeadLocation{" +
                "province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", county='" + county + '\'' +
                '}';
    }
}
